import { request } from '@/utils'

export function list(data) {
  return request({
    url: `/evaluationRecord/page`,
    method: 'post',
    data,
  })
}

export function info(params) {
  return request({
    url: `/evaluationRecord/selectInfoById`,
    method: 'get',
    params,
  })
}

export function actionList(params) {
  return request({
    url: `/evaluationRecord/selectEvalOperationType`,
    method: 'get',
    params,
  })
}

export function execute(data) {
  return request({
    url: `/evaluationRecord/executeEvaluation`,
    method: 'post',
    data,
  })
}

export function stop(data) {
  return request({
    url: `/evaluationRecord/terminationEvaluation`,
    method: 'post',
    data,
  })
}

export function downloadReport(data) {
  return request({
    url: `/evaluationRecord/downloadEvaluationReport`,
    method: 'post',
    data,
    responseType: 'blob',
  })
}
